package com.workManager.mapper;

import com.workManager.pojo.TdUser;
import com.workManager.pojo.TdUserExample;
import java.util.List;
import java.util.Map;

import com.workManager.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdUserMapper {
    int countByExample(TdUserExample example);

    int deleteByExample(TdUserExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(TdUser record);

    int insertSelective(TdUser record);

    List<TdUser> selectByExample(TdUserExample example);

    TdUser selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") TdUser record, @Param("example") TdUserExample example);

    int updateByExample(@Param("record") TdUser record, @Param("example") TdUserExample example);

    int updateByPrimaryKeySelective(TdUser record);

    int updateByPrimaryKey(TdUser record);

    int updateUserInfo(Map<String, Object> map);

    TdUser queryUserByLoginCode(String loginCode);

    TdUser queryUserByName(String userName);

    List<TdUser> queryUserByIds(int[] userIds);

    void passwordModify(Map record);

    List<TdUser> queryByOraganizationId(@Param("cm") Map<String, Object> map);

    List<UserVo> query(@Param("cm") Map<String, Object> map);

    void updateLoginTimeByLogCode(@Param("cm") Map<String, Object> map);



}